export function findByInfo() {
	//


	return uni.$u.http.get('users/wallet/getInfo')

}
export function findByInfoLog() {
	//


	return uni.$u.http.get('users/wallet/getInfoLog')

}
export function myIncomeExpenses() {
	//


	return uni.$u.http.get('users/wallet/myIncomeExpenses')

}



export function findByIncomeAndExpenses() {
	return uni.$u.http.get('users/wallet/getIncomeAndExpenses')
}
export function findByMyList(param) {
	var u = uni.$u.queryParams(param)
	return uni.$u.http.get('users/wallet/findByMyMiniList' + u)
}

export function findByMyWithdrawal(param) {
	return uni.$u.http.post('users/wallet/withdrawal', param)
}

export function findByMyWithdrawalList(param) {
	var u = uni.$u.queryParams(param)
	return uni.$u.http.get('users/wallet/findByMyWithdrawal' + u)
}

export function findBySign() {

	return uni.$u.http.post('users/wallet/sign')
}

//signList
export function findBySignList() {

	return uni.$u.http.get('users/wallet/signList')
}


//
export function findByMyPaymentTransfer(param) {
	return uni.$u.http.post('users/wallet/myPaymentTransfer', param)
}

export function findByMyPaymentTestPay() {
	return uni.$u.http.post('oauth/login/test')
}
export function findByLevelLogList(type = 0) {

	return uni.$u.http.get('users/wallet/findByLevelLogList?state=' + type)
}
//
export function findByPageWithdrawalList(page = 0, type = 0) {

	return uni.$u.http.get('users/wallet/findByPageWithdrawalMiniList?status=' + type + '&page=' + page)
}
export function findByWithdrawalShow(id = 0) {

	return uni.$u.http.get('users/wallet/getWithdrawalInfo?id=' + id)
}


export function withdrawalStatus(id = 0, status = 0, imageId = 0) {
	return uni.$u.http.post('users/wallet/withdrawalStatus?id=' + id + '&status=' + status + '&imageId=' + imageId, {
		id: id,
		status: status,
		imageId: imageId
	})
}

///api/users/wallet/findByPerUser?userId=0


export function findByPerUserWallet(userId = 0) {

	return uni.$u.http.get('users/wallet/findByPerUser?userId=' + userId)
}
///api/users/wallet/findByPerList?userId=0
export function findByPerListWallet(userId = 0) {

	return uni.$u.http.get('users/wallet/findByPerList?userId=' + userId)
}
//findByPerUsersList

export function findByPerUsersListWallet(date, userId = 0) {

	return uni.$u.http.get('users/wallet/findByPerUsersList?userId=' + userId + '&date=' + date)
}

//
//api/users/wallet/findByPageLogList?current=1&pageSize=50

export function findByPageLogListWallet(page = 0, type = 0, userId = 0) {

	//return uni.$u.http.get('users/wallet/findByPerUsersList?userId='+userId+'&date='+date)
	return uni.$u.http.get('users/wallet/findByPageLogList?userId=' + userId + '&state=' + type + '&page=' + page)
}